const obj = {
    a:1,
}

const obj1 = {};
const obj2 = {};

obj[obj1] = '1';
obj[obj2] = '2';

console.log(Object.keys(obj));
console.log(obj[obj1]);